<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="../vue.js"></script>
</head>
<body>
<div id="app">
    <div ref="hello" @click="handleClick">hello world</div>
</div>

<script>
    var vm = new Vue({
        el: "#app",
        data: {},
        methods:{
            handleClick: function () {
                //所有引用中找到hello这个引用,返回dom节点
                console.log(this.$refs.hello.innerHTML);
            }
        }
    })
</script>
</body>
</html>